package com.zhou.office.automation.vo;

import com.sun.org.apache.xpath.internal.operations.Bool;
import lombok.Data;

/**
 * 返回结果实体类
 *
 * @author Zhouyongli
 * @version 2024/09/14 15:17
 **/
@Data
public class ResultVO<T> {

    private Boolean flag;

    private String message;

    private T data;

    public ResultVO(boolean flag, String message){
        this.flag = flag;
        this.message = message;
    }

    public ResultVO(boolean flag, String message, T t){
        this.flag = flag;
        this.message = message;
        this.data = t;
    }

}
